this._updateAttachedDialogs();
this._computeBoundingBox();
- this.x = this._boundingBox.x;
- this.y = this._boundingBox.y;
+ this.set_translation(this._boundingBox.x, this._boundingBox.y, 0);
this._computeWindowCenter();
if (!clone.positioned) {
// This window appeared after the overview was already up
// Grow the clone from the center of the slot
- clone.x = x + cloneWidth / 2;
- clone.y = y + cloneHeight / 2;
+ clone.translation_x = x + cloneWidth / 2;
+ clone.translation_y = y + cloneHeight / 2;
clone.scale_x = 0;
clone.scale_y = 0;
clone.positioned = true;
clone.opacity = 0;
clone.scale_x = 0;
clone.scale_y = 0;
- clone.x = x;
- clone.y = y;
+ clone.translation_x = x;
+ clone.translation_y = y;
}
clone.ease({
} else {
// cancel any active tweens (otherwise they might override our changes)
clone.remove_all_transitions();
- clone.set_position(x, y);
+ clone.set_translation(x, y, 0);
clone.set_scale(scale, scale);
clone.set_opacity(255);
clone.overlay.relayout(false);
_animateClone(clone, overlay, x, y, scale) {
clone.ease({
- x, y,
+ translation_x: x,
+ translation_y: y,
scale_x: scale,
scale_y: scale,
duration: Overview.ANIMATION_TIME,
clone.slot = [x, y, clone.width * scale, clone.height * scale];
clone.positioned = true;
- clone.set_position(x, y);
+ clone.set_translation(x, y, 0);
clone.set_scale(scale, scale);
clone.overlay.relayout(false);
}
let [origX, origY] = clone.getOriginalPosition();
clone.scale_x = 1;
clone.scale_y = 1;
- clone.x = origX;
- clone.y = origY;
+ clone.translation_x = origX;
+ clone.translation_y = origY;
clone.ease({
opacity,
duration,
if (clone.metaWindow.showing_on_its_workspace()) {
let [origX, origY] = clone.getOriginalPosition();
clone.ease({
- x: origX,
- y: origY,
+ translation_x: origX,
+ translation_y: origY,
scale_x: 1,
scale_y: 1,
opacity: 255,